package com.murray.assignment.pojo;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/11
 * @Time 3:56
 * @Description 手动组装购物车详情信息类
 */
public class CartDetails {


    /**
     * skuId
     */
    private Integer skuId;
    /**
     * 商品名字
     */
    private String goodsName;
    /**
     * 商品图片
     */
    private String goodsImg;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 购买数量
     */
    private Integer buyNum;
    /**
     * attrName和attrValue的组合对象
     */
    private List<AttrNameAndAttrValue> attrNameAndAttrValues;

    @Override
    public String toString() {
        return "CartDetails{" +
                "skuId=" + skuId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsImg='" + goodsImg + '\'' +
                ", price=" + price +
                ", buyNum=" + buyNum +
                ", attrNameAndAttrValues=" + attrNameAndAttrValues +
                '}';
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    public List<AttrNameAndAttrValue> getAttrNameAndAttrValues() {
        return attrNameAndAttrValues;
    }

    public void setAttrNameAndAttrValues(List<AttrNameAndAttrValue> attrNameAndAttrValues) {
        this.attrNameAndAttrValues = attrNameAndAttrValues;
    }

    public CartDetails() {
    }

    public CartDetails(Integer skuId, String goodsName, String goodsImg, Double price, Integer buyNum, List<AttrNameAndAttrValue> attrNameAndAttrValues) {
        this.skuId = skuId;
        this.goodsName = goodsName;
        this.goodsImg = goodsImg;
        this.price = price;
        this.buyNum = buyNum;
        this.attrNameAndAttrValues = attrNameAndAttrValues;
    }
}
